<template>
	<view>
		<cu-custom>
			<block slot="content">公众资源</block>
		</cu-custom>
		<view class="list-box" v-for="(item,index) in resourList" :key="index">
			<view class="">
				<view class="">所在城市：{{ item.city }}</view>
				<view class="">是否免费：{{ item.free }}</view>
				<view class="">场馆名称：{{ item.venueName }}</view>
			</view>
			<view class="">
				<view class="">预约时间：{{ item.orderTime }}</view>
				<view class="">开放时间：{{ item.startOpenTime }}</view>
				<view class="">网址链接：{{ item.orderWebsite }}</view>
			</view>
			<view class="">
				<view class="">简介：{{ item.information }}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				resourList:[]
			}
		},
		onLoad() {
			this.getresourList()
		},
		methods: {
			getresourList(){

				this.http.getaction('/policy/publicResources/list', {})
					.then(res => {
						this.resourList = res.data.result.records
					})
					.catch(err => {
						console.log(err)
					})
			}
		}
	}
</script>

<style>

</style>
